package model

import "github.com/zeromicro/go-zero/core/stores/mon"

var _ ChatMsgTestModel = (*customChatMsgTestModel)(nil)

type (
	// ChatMsgTestModel is an interface to be customized, add more methods here,
	// and implement the added methods in customChatMsgTestModel.
	ChatMsgTestModel interface {
		chatMsgTestModel
	}

	customChatMsgTestModel struct {
		*defaultChatMsgTestModel
	}
)

// NewChatMsgTestModel returns a model for the mongo.
func NewChatMsgTestModel(url, db, collection string) ChatMsgTestModel {
	conn := mon.MustNewModel(url, db, collection)
	return &customChatMsgTestModel{
		defaultChatMsgTestModel: newDefaultChatMsgTestModel(conn),
	}
}
